package com.springboot.springboot1.Bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName:
 * @author: CKC
 * @DateTime: 2021/1/13 16:29
 *
 * lombok:
 * @Data      生成GET、Set 方法
 * @ToString   生成  ToString
 * @AllArgsConstructor    生成所有的有参构造
 * @NoArgsConstructor     生成无参构造
 *
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Pet {
    private int age;
    private String name;
    private Double weight;
    
    public Pet(int age, String name) {
        this.age = age;
        this.name = name;
    }
}
